package sparkCore.net

import java.io.FileWriter

object writeFile {

  //把清洗后的数据写入文件
  def writeInfo(fileName:String,infoList:List[String]) = {
    val fw = new FileWriter(fileName)
    for(list <- infoList){
      fw.write(list)
    }
    fw.flush()
    fw.close()
  }

}
